package com.itheima.HomeWork.homework05;



public class Computer implements PlayGame {
    private String brand;
    private double price;


    public Computer() {
    }

    public Computer(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public void playGame() {
        System.out.println("使用"+getPrice()+"元 "+getBrand()+"玩游戏");
    }
    void coding(){
        System.out.println("使用"+getPrice()+"元 "+getBrand()+"开发JavaEE应用");
    }
}
